package com.atguigu.gmall.product;

import com.atguigu.gmall.common.anno.EnableMinio;
import com.atguigu.gmall.common.anno.EnableSwaggerDoc;
import com.atguigu.gmall.common.anno.EnableThreadPoolExecutor;
import com.atguigu.gmall.common.cache.anno.EnableCacheAspect;
import org.mybatis.spring.annotation.MapperScan ;
import org.springframework.boot.SpringApplication ;
import org.springframework.boot.autoconfigure.SpringBootApplication ;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.scheduling.annotation.EnableScheduling;

@SpringBootApplication
@MapperScan(basePackages = "com.atguigu.gmall.product.mapper")
@EnableMinio
@EnableSwaggerDoc
@EnableScheduling           // 开启定时任务的功能
@EnableCacheAspect
@EnableThreadPoolExecutor
@EnableFeignClients(basePackages = "com.atguigu.gmall.feign.search")
public class ProductApplication {

    public static void main(String[] args) {
        SpringApplication.run(ProductApplication.class , args) ;
    }

}
